#ifndef __KEY_H__
#define __KEY_H__

#include "main.h"

typedef enum
{
	first,
	second,
	thirty,
	final
}KEY_Cnt_t;

typedef enum
{
	release,
	press
}KEY_State_t;

typedef struct
{
	uint8_t val;
	KEY_Cnt_t cnt;
	KEY_State_t state;
}KEY_t;

void key_scan(void);
KEY_State_t key_getVal(void);

#endif
